

package com.kimo.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.model.FlowLog;
import com.kimo.shop.bean.param.ProdAnalysisSurveyParam;

import java.util.Date;
import java.util.List;

/**
 * 用户流量记录
 *
 * @author kimo-taozhouchuan
 * @date 2020-07-13 13:18:33
 */
public interface FlowLogService extends IService<FlowLog> {

    Date getMinCreateTime();

    void insertBatch();

    List<FlowLog> getFlowLogListByCache();

    void flowLogPutCache(List<FlowLog> flowLogList);

    List<FlowLog> getFlowLogByDate(Date startTime, Date endTime);

    void deleteAllByDate(Date startTime, Date endTime);

    Integer countVisitProdNum(ProdAnalysisSurveyParam param);

    Integer countVisitProdInfoNum(ProdAnalysisSurveyParam param);

    Integer countProdExposeNum(ProdAnalysisSurveyParam param);

    Integer countProdVisitorNum(ProdAnalysisSurveyParam param);

    Integer countAddCartProdNum(ProdAnalysisSurveyParam param);

    Integer countShareVisit(ProdAnalysisSurveyParam param);

    Integer countAllVisitor(Date date, Date startTime, Date endTime);

    Integer countUserNum(Date startTime, Date endTime);

    Integer countAddCartUserNum(Date startTime, Date endTime);
}
